import xadmin
from .models import *
class CityAdmin(object):
    list_display = ('name','desc','add_time')
    search_fields = ('name','desc')
    list_filter = ('name','desc','add_time')
class CourseOrgAdmin(object):
    list_display = ('name','desc','city','address','click_nums','fav_nums','add_time')
    search_fields = ('name','desc','city','address','click_nums','fav_nums')
    list_filter = ('name','desc','city','address','click_nums','fav_nums','add_time')
class TeacherAdmin(object):
    list_display = ('name','org','work_year','work_position','points','click_nums','fav_nums','add_time')
    search_fields = ('name','org','work_year','work_position','points','click_nums','fav_nums')
    list_filter = ('name','org','work_year','work_position','points','click_nums','fav_nums','add_time')
xadmin.site.register(City,CityAdmin)
xadmin.site.register(CourseOrg,CourseOrgAdmin)
xadmin.site.register(Teacher,TeacherAdmin)